#ifndef _HCC_ERROR_CODE_MID_GNSS_H_
#define _HCC_ERROR_CODE_MID_GNSS_H_

#include "ofc/ofc_types.h"
#include "hcc/hcc_error_code.h"
#include "hcc/hcc_error_code_mid.h"

#ifdef __cplusplus
extern "C" {
#endif

#define HCC_MAKE_MID_GNSS_ERROR(error_code) (int)HCC_ERROR(HCC_MAKE_MID_WARE_ERROR(kHccMidWareGnss, error_code, HCC_ERROR_LEVEL_ERROR))


/**
 * Gnss模块定义:
 */
typedef Int32 THccAppGnssErrorCode;

#define kHccMidGnssSuccess	HCC_ERROR_SUCCESS	///< 成功,没有错误
#define kHccMidGnssInvalidParam	HCC_MAKE_MID_GNSS_ERROR(1)	///<无效的参数
#define kHccMidGnssInitFail	HCC_MAKE_MID_GNSS_ERROR(2)	///<初始化失败
#define kHccMidGnssInitEventFail	HCC_MAKE_MID_GNSS_ERROR(3)	///<事件初始化失败
#define kHccMidGnssInitMutexFail	HCC_MAKE_MID_GNSS_ERROR(4)	///<互斥锁初始化失败
#define kHccMidGnssOpenDrvFail	HCC_MAKE_MID_GNSS_ERROR(5)	///<打开驱动失败
#define kHccMidGnssStartTaskFail	HCC_MAKE_MID_GNSS_ERROR(6)	///<线程无法启动
#define kHccMidGnssNotSupport	HCC_MAKE_MID_GNSS_ERROR(7)	///<功能不支持
#define kHccMidGnssNotOpen	HCC_MAKE_MID_GNSS_ERROR(8)	///<串口未打开
#define kHccMidGnssNoBuf	HCC_MAKE_MID_GNSS_ERROR(9)	///<底层无buf
#define kHccMidGnssGdaSoftReset	HCC_MAKE_MID_GNSS_ERROR(10)	///<模块软重启失败(状态机)
#define kHccMidGnssGdaFacReset	HCC_MAKE_MID_GNSS_ERROR(11)	///<模块软恢复出厂失败(状态机)
#define kHccMidGnssGdaPowerOn	HCC_MAKE_MID_GNSS_ERROR(12)	///<终端电源打开失败(状态机)
#define kHccMidGnssGdaPowerOff	HCC_MAKE_MID_GNSS_ERROR(13)	///<终端电源关闭失败(状态机)
#define kHccMidGnssGdaLocInv	HCC_MAKE_MID_GNSS_ERROR(14)	///<模块定位无效(状态机)
#define kHccMidGnssGdaLocErr	HCC_MAKE_MID_GNSS_ERROR(15)	///<模块定位长时间无效(状态机)
#define kHccMidGnssGdaBrInv	HCC_MAKE_MID_GNSS_ERROR(16)	///<当前波特率无效(状态机)
#define kHccMidGnssGdaSetServeBr	HCC_MAKE_MID_GNSS_ERROR(17)	///<设置终端波特率失败(状态机)
#define kHccMidGnssGdaSetModuleBr	HCC_MAKE_MID_GNSS_ERROR(18)	///<设置模块波特率失败(状态机)

//旧版本适配补丁
#define kHccMidGnssCodeSuccess kHccMidGnssSuccess


#ifdef __cplusplus
}  // extern "C"
#endif

#endif // _HCC_ERROR_CODE_MID_GNSS_H_
/**
 * @
 */
